//
//  UIColor-Extension.swift
//  表情键盘
//
//  Created by lujun on 2021/11/24.
//



import UIKit

extension UIColor {
    
    convenience init(r: CGFloat,g: CGFloat,b: CGFloat){
        self.init(red: r / 255.0, green: g / 255.0, blue: b / 255.0, alpha: 1)
    }

    class func randomColor() -> UIColor {
        
        return UIColor(r: CGFloat(arc4random_uniform(256)), g: CGFloat(arc4random_uniform(256)), b: CGFloat(arc4random_uniform(256)))
    }
    
}
